package taskshare.controller;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import taskshare.meta.TaskMeta;

public class DeletetaskController extends Controller {

    TaskMeta meta = TaskMeta.get();

    @Override
    public Navigation run() throws Exception {

        Datastore.delete(asKey(meta.key));

        return redirect(basePath);
    }
}
